package com.intramirror.wd.service;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * Created by zhongyu on 2017/12/11.
 */
@EnableFeignClients
@EnableWebMvc
@EnableEurekaClient
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableScheduling
@ImportResource({"classpath:applicationContext.xml"})
@SpringBootApplication(scanBasePackages = {"com.intramirror.wd.service"})
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@RefreshScope
public class Application{

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
